package com.news.dao;

import java.util.List;

import org.hibernate.SessionFactory;

import com.news.entity.Category;
import com.news.entity.News;
import com.news.util.PageModel;

public interface CategoryDao {

	public abstract void setSession(SessionFactory session);

	public abstract List<News> getAllCategory();

	public abstract Category getCategory(int cid);

	public abstract PageModel getPageModelBycid(int cid, Integer currentPage,
			Integer rows);

	public abstract Long getAllCountBycid(int cid);

	public abstract List<News> getAllCategoryBycid(int currPage, int pageSize,
			int cid);

	public abstract PageModel getPageModelByCid(Integer currentPage,
			Integer rows, int cid);

	public abstract Long getAllCount();

	public abstract List<News> getAllNewsByCid(int currPage, int pageSize,
			int cid);

}